home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11160 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  44 lines

  1. Path: ip-pdx09-31.teleport.com!user
  2. From: peteski@teleport.com (Peter Miller)
  3. Newsgroups: comp.lang.c,comp.lang.c,moderated
  4. Subject: Re: Symantec C++ 7.0.6 for the Mac (using Thick C enabled feature)
  5. Date: Thu, 21 Mar 1996 22:32:12 -0700
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <peteski-2103962232120001@ip-pdx09-31.teleport.com>
  8. References: <315041F4.4AC2@uthscsa.edu>
  9. NNTP-Posting-Host: ip-pdx09-31.teleport.com
  10.  
  11. In article <315041F4.4AC2@uthscsa.edu>, Merardo Monzon
  12. <Monzon@uthscsa.edu> wrote:
  13.  
  14. > I've declared a global character type variable as follows:
  15. > char  tHd[] = {
  16. > "<FONT SIZE=3><CENTER>\n<DL>\n \
  17. .
  18. .
  19. .
  20. > </DL></Center></Font>\n<br><pre>"
  21. > };
  22. >   The entire string is NOT stored by the char array tHd.  The string is 
  23. > truncated after 479 bytes.  Why?  Is this particular to Symantec C++ 
  24. > 7.0.6 (with this product one can select the compiler to use C or C++).
  25. > Please respond directly to my e-mail address.  
  26. > There must be someone using this product on the Mac.
  27. > Merardo Monzon
  28. > Monzon@uthscsa.edu
  29. > UT Health Science Center At San Antonio, Tx
  30.  
  31.  
  32.  
  33. Assuming you are not missing any proper backslashes and quotes, then it is
  34. likely that the compiler may have a built in limit to the maximum size of
  35. constant strings.  Try the alternate, pointer form:
  36.    char *tHdl = "xxxxxx";
  37. and see what happens. 
  38. Check the documentation for a section concerning compiler limits.
  39.  
  40. Peter
  41.